package com.aaa.service;

import com.aaa.service.Impl.OederService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ${崔灿}
 * @date 2022/11/13 20:05
 **/

public class Test {
    public static void main(String[] args) {
        //读取spring文件
        ApplicationContext app = new ClassPathXmlApplicationContext("spring.xml");

        IUserService userService = app.getBean(IUserService.class);

        userService.save();
        OederService orOederService = app.getBean(OederService.class);
        orOederService.save1();
    }
}
